package top.fangw.common.flyway;

import top.fangw.common.flyway.util.CreateTable;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @description:
 * @author: fgw
 * @createDate: 2024/1/11
 */
public class TestMain {
    public static void main(String[] args) {
        CreateTable createTable = new CreateTable();
        String url = "jdbc:mysql://82.157.172.66:3308/test_db_name?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai";
        String username = "fgw";
        String password = "Fgw@123";
        String version = "1.0";
        String tenantId = "lisi";
        Map<String, String> dbName = Map.of("test_db_name", "test");
        Set<String> tables = new HashSet<String>();
        tables.add("boot_sys_audit_log");
        createTable.createTable(url,username,password,version,tenantId,dbName, false);
    }
}
